package top.codechap.ioc.dao.impl;

import top.codechap.ioc.dao.UserDao;

/**
 * 数据访问层实现类
 */
public class UserDaoImpl implements UserDao {

    private String username;
    private String password;

    public UserDaoImpl() {
        System.out.println("创建了UserDaoImpl对象...");
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public void add() {
        System.out.println("UserDao...");
        System.out.println("username = " + username);
        System.out.println("password = " + password);
    }
}
